﻿using System;
using System.Linq.Expressions;
using WebApplication1.Core.Domain.Entities;

namespace WebApplication1.Core.Domain.RepositoryContracts {
    public interface ILouYuanRepository {
        public Task<LouYuan?> GetLouYuanByLouYuanID(ushort LouYuanID);
        public Task<IEnumerable<LouYuan>> GetAllLouYuan();
        public Task<IEnumerable<LouYuan>> GetFilteredLouYuan(Expression<Func<LouYuan, bool>> expression);

        public Task<LouYuan> AddLouYuan(LouYuan LouYuan);

        public Task<bool> UpdateLouYuan(LouYuan LouYuan);

        public Task<bool> DeleteLouYuan(ushort LouYuanID);
    }
}
